﻿using Hidistro.Entities.Commodities;
using Hidistro.SaleSystem.Catalog;
using Hidistro.UI.Common.Controls;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Web.UI.WebControls;

namespace Hidistro.UI.SaleSystem.Tags
{
    public class YB_Juseshangcheng_Top : AscxTemplatedWebControl
    {
        private Repeater Rpleft;
        private Repeater Rpright;
        protected override void AttachChildControls()
        {
            ;
            this.Rpleft = (Repeater)this.FindControl("Rpleft");
            this.Rpright = (Repeater)this.FindControl("Rpright");
            DataTable dt = new DataTable();
            dt = ProductBrowser.GetJsProducts(6,0,0);
            this.Rpleft.DataSource = dt;
            this.Rpleft.DataBind();

            this.Rpright.DataSource = dt;
            this.Rpright.DataBind();
        }
        protected override void OnInit(EventArgs e)
        {
            if (this.SkinName == null)
            {
                this.SkinName = "/ascx/tags/YB_Juseshangcheng_Top.ascx";
            }
            base.OnInit(e);
        }
    }
}
